
capture log close

set more off

use rep_final, clear
	*noncitizens
	keep if cit==0
	keep if marrinyr==2 & married==1 
	drop if citizen_sp==.		

* Mean
				
		foreach gr of varlist   daca controlgrdaca controlgrdacacutoff   ///
								controlgrdaca_agematch controlgrchildimm controlgrdacahs {
									   
				*******************************************************
				display ""
				display "--------------------------------------"
				
				display "Group: `gr' "
				
				display "--------------------------------------"
				**********************************************************
		
			estpost tabstat  age male yreduc ysm black white asian hispanic otherrace ///
					if `gr'==1 [fweight=perwt], listwise ///
					statistics(mean sd) columns(statistics)
		
			esttab using tableA1_`gr'.csv, replace main(mean) aux(sd) nostar unstack nogaps nonote label
		
			}
	
